//
// Created by void on 24-1-11.
//

#ifndef RECTOR_SERVER_C_WORKERTHREAD_H
#define RECTOR_SERVER_C_WORKERTHREAD_H
#include <pthread.h>
#include <EventLoop.h>

struct WorkerThread {
    pthread_t threadID;
    char name[24];
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    struct EventLoop* evLoop;
};

int workerThreadinit(struct WorkerThread* thread, int index);
void workerThreadRun(struct WorkerThread* thread);


#endif //RECTOR_SERVER_C_WORKERTHREAD_H
